package com.leng.entity;

import java.io.Serializable;
import java.util.Date;

import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

/**
* @Author: 冷俊杰
* @Description: TODO
* @DateTime: 2022/8/1 16:55
**/
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
public class AirQualityIndex implements Serializable {
    /**
    * 记录编号
    */
    private Integer id;

    /**
    * 区域编号
    */
    private Integer districid;

    /**
    * 监测时间
    */
    @DateTimeFormat(pattern="yyyy-MM-dd")  //前端页面转换到Date字段
    private Date monitortime;

    /**
    * pm10值
    */
    private Integer pm10;

    /**
    * pm2.5值
    */
    private Integer pm25;

    /**
    * 监测站
    */
    private String monitoringstation;

    /*
    *  区域实体类
    * */
    private District district;

    private static final long serialVersionUID = 1L;
}